import request from '../util/request.js'
const baseUrl = "shop.auth/"

export function getProductList(data) {
	return request.get(baseUrl + "product/list", data, {
		noAuth: false,
	})
}


export function setProductUp(data) {
	return request.get(baseUrl + "product/up", data, {
		noAuth: false,
	})
}


export function setProductDown(data) {
	return request.get(baseUrl + "product/down", data, {
		noAuth: false,
	})
}

export function setProductCancel(data) {
	return request.get(baseUrl + "product/cancel", data, {
		noAuth: false,
	})
}


export function setProductBatchUp(data) {
	return request.post(baseUrl + "product/batch/up", data, {
		noAuth: false,
	})
}


export function setProductBatchDown(data) {
	return request.post(baseUrl + "product/batch/down", data, {
		noAuth: false,
	})
}


export function setProductBatchCancel(data) {
	return request.post(baseUrl + "product/batch/cancel", data, {
		noAuth: false,
	})
}


export function getSamplesList(data) {
	return request.get(baseUrl + "samples/list", data, {
		noAuth: false,
	})
}


export function samplesSuccess(data) {
	return request.get(baseUrl + "samples/success", data, {
		noAuth: false,
	})
}

export function samplesFail(data) {
	return request.get(baseUrl + "samples/fail", data, {
		noAuth: false,
	})
}

export function samplesDelivery(data) {
	return request.post(baseUrl + "samples/delivery", data, {
		noAuth: false,
	})
}




export function samplesCount() {
	return request.get(baseUrl + "samples/count", {}, {
		noAuth: false,
	})
}

export function getProductOdrList(data) {
	return request.get(baseUrl + "product/order.detail/list", data, {
		noAuth: false,
	})
}

export function getProductOrderlist(data) {
	return request.get(baseUrl + "product/order/list", data, {
		noAuth: false,
	})
}


export function getProductTopList(data) {
	return request.get(baseUrl + "product/top/list", data, {
		noAuth: false,
	})
}

export function getBdInfoList(data) {
	return request.get(baseUrl + "bd/info/list", data, {
		noAuth: false,
	})
}

export function getproductDet(data) {
	return request.get(baseUrl + "product/sub/detail", data, {
		noAuth: false,
	})
}

export function getBdInfoSubList(data) {
	return request.get(baseUrl + "bd/info.sub/list", data, {
		noAuth: false,
	})
}

export function getSalesList(data) {
	return request.get(baseUrl + "product/sales/list", data, {
		noAuth: false,
	})
}

export function getLogisticsInfo(data) {
	return request.get(baseUrl + "samples/query/logistics/info", data, {
		noAuth: false,
	})
}

export function getBdProductList(data) {
	return request.get(baseUrl + "bd/product/list", data, {
		noAuth: false,
	})
}